<template>
	<uni-popup ref="popupRef" type="center">
		<view class="main">
			<view class="box">
				<view class="title">
					助力成功！
				</view>
				<view class="nl">
					<view class="nl-item">
						<text>+6980</text>
						<text>获得心愿值</text>
					</view>
					<view class="nl-item">
						<text>6.98</text>
						<text>帮TA助力(元)</text>
					</view>
				</view>
				<view class="btn" @click="close">
					开心收下
				</view>
			</view>
		</view>
	</uni-popup>
</template>

<script setup>
	import {
		reactive,
		ref,
		computed,
		watchEffect
	} from 'vue'
	import {
		onReady,
		onLoad
	} from '@dcloudio/uni-app'
	const popupRef = ref(null)
	const close = () => {
		popupRef.value.close()
	}
	let wish = ref('')
	const open = (data) => {
		wish.value = data
		popupRef.value.open()
	}
	defineExpose({
		close,
		open
	})
</script>

<style lang="scss" scoped>
	.main {
		width: 560rpx;
		height: 600rpx;
		position: relative;
		background-color: #FFDCDD;
		border-radius: 40rpx;
	}

	.title {
		font-weight: 700;
		font-size: 40rpx;
		color: #000000;
		line-height: 48rpx;
		text-align: center;
		padding: 80rpx 0;
	}

	.nl {
		display: flex;
		justify-content: space-around;
		padding: 80rpx 0;
		&-item{
			text-align: center;
			&>text:nth-child(1){
				font-weight: 400;
				font-size: 48rpx;
				color: #F04E2A;
				line-height: 48rpx;
				display: block;
			}
			&>text:nth-child(2){
				font-weight: 400;
				font-size: 30rpx;
				color: #57111F;
				line-height: 48rpx;
				display: block;
			}
		}
	}

	.btn {
		width: 368rpx;
		height: 88rpx;
		background: #F04E2A;
		border-radius: 200rpx;
		font-weight: 900;
		font-size: 30rpx;
		color: #FFFFFF;
		line-height: 88rpx;
		text-align: center;
		margin: 0 auto;
	}

	.box {
	
	}
</style>